<template>
  <!-- 已放款 -->
  <div class="box clearfix">
    <section class="section_wrap">
      <FunctionalAreas :orderNumber="orderNumber"></FunctionalAreas>
      <div class="title_sub prduct_bod_r">产品说明：</div>
      <ProductDescriptionToo></ProductDescriptionToo>
    </section>

    <section class="section_wrap">
      <div style="width:100%;">
        <div class="title_sub infro_bod_l">信息查看：</div>
        <div class="state">状态：已放款</div>
      </div>
      <EnterInfor></EnterInfor>
    </section>

    <section class="section_wrap" v-show="showFillAnIn">
      <div class="title_sub bd_bod_l">补登信息：</div>
      <FillAnInFormation
        :orderNumber="orderNumber"
        @showbox="toshow"
      ></FillAnInFormation>
    </section>

    <section class="section_wrap">
      <div class="title_sub infro_bod_l">赎楼财务信息：</div>
      <LoanInfor :orderNumber="orderNumber"></LoanInfor>
    </section>

    <!-- <section class="section_wrap">
      <div class="title_sub qz_bod_l">放款权证信息：</div>
      <LoanInRele :orderNumber="orderNumber"></LoanInRele>
    </section> -->
    <section class="section_wrap">
      <div class="title_sub ingz_bod_l">提成规则：</div>
      <Commission :orderNumber="orderNumber"></Commission>
    </section>
    <section class="section_wrap">
      <div class="title_sub upload_bod_l" id="testjq">附件管理：</div>
      <!-- 上传组件 -->
      <Upload class="uploadStyle" :isNew="isNew"></Upload>
    </section>

    <section class="section_wrap">
      <div class="title_sub infro_bod_l">审批流：</div>
      <ApprovalText :orderNumber="orderNumber"></ApprovalText>
      <div class="title_sub infro_bod_l">操作记录：</div>
      <OperationRecords :orderNumber="orderNumber"></OperationRecords>
    </section>
  </div>
</template>

<script>
import FunctionalAreas from "../../components/ordinaryMortgage/FunctionalAreas";
import ProductDescriptionToo from "../../components/business/ProductDescriptionToo";
import ApprovalText from "../../components/ordinaryMortgage/ApprovalText";
import Upload from "../../components/ordinaryMortgage/Upload";
import OperationRecords from "../../components/business/OperationRecords";
import LoanInfor from "@/components/ordinaryMortgage/LoanInfor";
// import LoanInRele from "@/components/ordinaryMortgage/LoanInRele";
import EnterInfor from "../../components/ordinaryMortgage/EnterInfor";
import FillAnInFormation from "../../components/business/FillAnInFormation";
import Commission from "../../components/ordinaryMortgage/Commission";
import { getProductUrl } from "../../../src/assets/js/api";

export default {
  name: "ToBeLent",
  components: {
    FunctionalAreas,
    ProductDescriptionToo,
    EnterInfor,
    ApprovalText,
    Upload,
    OperationRecords,
    LoanInfor,
    // LoanInRele,
    FillAnInFormation,
    Commission
  },
  data() {
    return {
      pending: true,
      orderNumber: "",
      isNew: false,
      status: null,
      golbalPermissions: [],
      ProductUrl: "",
      showFillAnIn: true
    };
  },
  created() {
    this.golbalPermissions = localStorage.getItem("permissions").split(",");
    this.orderNumber = sessionStorage.getItem("orderNumber");
    this.status = eval(this.$route.query.status);
    this.findProductUrl(this.orderNumber);
  },
  methods: {
    toshow(msg) {
      this.showFillAnIn = msg;
    },
    //根据订单查询路由path路径
    findProductUrl(orderNumber) {
      getProductUrl({
        orderNumber: orderNumber
      }).then(res => {
        this.ProductUrl = res.data.productUrl;
      });
    }
  }
};
</script>

<style scoped type="less">
.text {
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  margin-top: 20px;
  text-indent: 2em;
}
.state {
  font-size: 22px;
  font-weight: bold;
  float: right;
  margin-top: -34px;
  margin-right: 3%;
}

.posInput {
  position: relative;
}
.pos {
  position: absolute;
  z-index: 2;
}
.pos.left {
  left: 10px;
}
.pos.right {
  right: 0;
}
.posInput ::v-deep .el-input__inner {
  padding: 0 50px 0 40px;
  text-align: center;
}
.posInput.ts ::v-deep .el-input__inner {
  padding-left: 25px;
}
.toBe {
  line-height: 50px;
}
::v-deep .el-form-item__content {
  text-align: left;
}
.el-date-editor.el-input {
  width: auto;
}
</style>
